package cn.zyq.ykb.controller.h5.product;

import cn.zyq.ykb.beans.product.ProductLink;
import cn.zyq.ykb.service.product.ProductLinkService;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.common.PageParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 商品链接Controller
 *
 * @author SystemAuth
 * @date 2023-11-02
 */

@RestController(value = "H5ProductLinkController")
@RequestMapping("/api/productLink")
@Api(tags = "商品链接接口")
public class ProductLinkController extends BaseController {

    @Autowired
    private ProductLinkService productLinkService;

    /**
     * 查询商品链接列表
     */
    @ApiOperation(value = "列表", response = ProductLink.class)
    @PostMapping("/list")
    public Object list(@RequestBody PageParam pageParam) {
        return this.productLinkService.selectProductLinkList(pageParam);
    }
}
